package com.jzmy.specialist.feign;

import com.example.commons.entity.CoursesDO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * @author mengzhichao
 * @create 2022-08-29-13:57
 */
@Component
@FeignClient(name = "jzmy-site",path = "site" )   //服务调用
public interface CertificateProfileOpenFeign {


    /**
     * api小程序端-证书概况信息列表接口--公开方法，不需要登录
     */
    @GetMapping("/CertificateProfileFeignController/selByFormal")
    List<Map<Object,Object>> selByFormal();

    /**
     * 证书查询接口
     * @return
     */
    @GetMapping("/CertificateProfileFeignController/selByFormalByProfileId")
    String selByFormalByProfileId(@RequestParam("id") String id);
}
